#define _CRT_SECURE_NO_WARNINGS 1
#include"stack.h"

int main()
{
	ST s;
	STinit(&s);
	STpush(&s, 1);
	STpush(&s, 2);
	STpush(&s, 3);
	STpush(&s, 4);
	while (!STempty(&s))
	{
		printf("%d ", STtop(&s));
		STpop(&s);
	}
	STdetroy(&s);
	return 0;
}